/**
 * 
 */
package tk.sunlatus.project.config.tool;

import org.apache.commons.configuration.Configuration;

import tk.sunlatus.project.config.ConfigurationManager;
import tk.sunlatus.project.config.domain.ConfigFile;


/**
 * @author sunlotus
 * 
 */
public final class ConfigTool {

    private ConfigurationManager configManager = new ConfigurationManager();

    private Configuration sysConfig = null;

    private static ConfigTool tool = new ConfigTool();

    private ConfigTool() {
        super();
        this.sysConfig = configManager.getConfiguration("sunlatusSys", Integer
                .parseInt(ConfigFile.RefreshType.REFRESH_NO));

    }

    public static boolean isTestMode() {
        return tool.sysConfig.getBoolean("isTest");
    }
}
